package com.school.information.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.school.information.entity.SysMenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (SysMenu)表数据库访问层
 *
 * @author ycc
 * @since 2023-05-28 22:38:17
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenuEntity> {
    /**
     * 根据员工id，获取该员工下所有的菜单权限集合
     *
     * @param userId
     * @return
     */
    List<SysMenuEntity> findMenuByUserId(@Param("userId") Long userId);

    /**
     * 根据用户查询系统菜单列表
     *
     * @return 菜单列表
     */
    List<SysMenuEntity> selectMenuListByUserId(@Param("userId") Long userId);


}

